<template>
  <div class="table-page-search-wrapper">
    <a-form layout="inline">
      <a-row>
        <a-col :md="8" :sm="12" :xs="24" style="padding:0 8px;">
          <a-form-item label="门店编号:">
            <a-input allowClear v-model="searchForm.shopId" placeholder="请输入门店编号" />
          </a-form-item>
        </a-col>
        <a-col :md="8" :sm="12" :xs="24" style="padding:0 8px;">
          <a-form-item label="门店名称:">
            <a-input v-model="searchForm.shopName" placeholder="请输入门店名称" />
          </a-form-item>
        </a-col>
        <a-col :md="8" :sm="12" :xs="24" style="padding:0 8px;">
          <a-form-item label="所属业务:">
            <a-select v-model="searchForm.status" placeholder="请选择所属业务" allowClear>
              <a-select-option
                v-for="item in statuslistt"
                :key="item.value"
                :value="item.value"
              >{{item.label}}</a-select-option>
            </a-select>
          </a-form-item>
        </a-col>
        <a-col :md="8" :sm="12" :xs="24" style="padding:0 8px;">
          <a-form-item label="门店状态:">
            <a-select v-model="searchForm.status" placeholder="请选择门店状态" allowClear>
              <a-select-option
                v-for="item in laiyuanList"
                :key="item.value"
                :value="item.value"
              >{{item.label}}</a-select-option>
            </a-select>
          </a-form-item>
        </a-col>

        <a-col :md="8" :sm="12" :xs="24" style="padding:0 8px;">
          <a-form-item>
            <a-button type="primary" icon="search" @click="searchAction()">查找</a-button>
            <a-button icon="delete" @click="resetSearch()" style="margin-left: 8px;">重置</a-button>
          </a-form-item>
        </a-col>
      </a-row>
    </a-form>
  </div>
</template>
<script>
export default {
  name: 'search',
  props: ['keyName'],
  data() {
    return {
      statuslistt: [
        {
          label: '商超',
          value: '02',
        },
        {
          label: '洗衣',
          value: '03',
        },
        {
          label: '家政',
          value: '04',
        },
        {
          label: '咖吧',
          value: '05',
        },
      ], //所属业务
      laiyuanList: [
        {
          label: '营业中',
          value: '01',
        },
        {
          label: '停业中',
          value: '02',
        },
      ], //门店状态
      searchForm: {},
    }
  },
  methods: {
    searchAction() {
      //执行搜索
      this.$emit('search')
    },
    resetSearch() {
      this.searchForm = {}
      this.$emit('resetSearch')
    },
    getSearchForm() {
      //获取高级搜索条件
      return {
        ...this.searchForm,
      }
    },
  },
}
</script>


<style lang="less">
</style>>
